package com.springboot.bookmanegersystem.model.resp;

/**
 * Created with IntelliJ IDEA.
 * Description :
 * User: jiume
 * Date: 2025-05-09
 * Time: 10:11
 */
// 响应码-业务
public enum ResultCodeEnum {
    SUCCESS(200, "操作成功"),
    ERROR(400, "操作失败"),
    FATAL(500, "服务异常");

    private final Integer code;
    private final String message;

    private ResultCodeEnum(Integer code, String message) {
        this.code = code;
        this.message = message;
    }

    public Integer getCode() {
        return code;
    }

    public String getMessage() {
        return message;
    }
}
